//
//  Util.h
//  DarkSunVideo
//
//  Created by WANG TOM on 11-4-25.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
#import <CommonCrypto/CommonCryptor.h>

#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonHMAC.h>
#import "NSData+Base64.h"




NSString * doDESCipher(CCAlgorithm desOr3des, CCOperation encryptOrDecrypt, NSString *plainText, NSString *key);

NSString * httpGet(NSString *url);
void httpGetAsy(NSString *url,id delegate);
NSString * httpPost(NSString *url,NSDictionary *valueMap);
void httpPostAsy(NSString *url,NSDictionary *valueMap,id delegate);

BOOL wget(NSString *url,NSString *desitionPath);
Boolean isValidEmailAddress(NSString *istr);
NSString * md5(NSString *str);